package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * BE_History实体类
 * 
 * @author 
 *
 */
public class BeHistory {
	/***/
	private Object ID; 
	/***/
	private String OrderNo; 
	/***/
	private Integer StepID; 
	/***/
	private java.time.Instant Datee; 
	/***/
	private Integer EmpID; 
	/***/
	private Integer IsBack; 
	/**
	 * 实例化
	 */
	public BeHistory() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public BeHistory(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("OrderNo") instanceof String) {
			this.setOrderNo((String) obj.get("OrderNo"));
		}
		if (obj.get("StepID") instanceof Number) {
			this.setStepID(((Number) obj.get("StepID")).intValue());
		}
		if (obj.get("Datee") instanceof java.time.Instant) {
			this.setDatee((java.time.Instant) obj.get("Datee"));
		}
		if (obj.get("EmpID") instanceof Number) {
			this.setEmpID(((Number) obj.get("EmpID")).intValue());
		}
		if (obj.get("IsBack") instanceof Number) {
			this.setIsBack(((Number) obj.get("IsBack")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getOrderNo() != null) {
			result.put("OrderNo",this.getOrderNo());
		}
		if (this.getStepID() != null) {
			result.put("StepID",this.getStepID());
		}
		if (this.getDatee() != null) {
			result.put("Datee",this.getDatee());
		}
		if (this.getEmpID() != null) {
			result.put("EmpID",this.getEmpID());
		}
		if (this.getIsBack() != null) {
			result.put("IsBack",this.getIsBack());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取OrderNo
	 * 
	 * @return
	 */
	public String getOrderNo() {
		return OrderNo;
	}

	/**
	 * 设置OrderNo
	 * 
	 * @param OrderNo
	 */
	public void setOrderNo(String OrderNo) {
		this.OrderNo = OrderNo;
	}
	
	/**
	 * 获取StepID
	 * 
	 * @return
	 */
	public Integer getStepID() {
		return StepID;
	}

	/**
	 * 设置StepID
	 * 
	 * @param StepID
	 */
	public void setStepID(Integer StepID) {
		this.StepID = StepID;
	}
	
	/**
	 * 获取Datee
	 * 
	 * @return
	 */
	public java.time.Instant getDatee() {
		return Datee;
	}

	/**
	 * 设置Datee
	 * 
	 * @param Datee
	 */
	public void setDatee(java.time.Instant Datee) {
		this.Datee = Datee;
	}
	
	/**
	 * 获取EmpID
	 * 
	 * @return
	 */
	public Integer getEmpID() {
		return EmpID;
	}

	/**
	 * 设置EmpID
	 * 
	 * @param EmpID
	 */
	public void setEmpID(Integer EmpID) {
		this.EmpID = EmpID;
	}
	
	/**
	 * 获取IsBack
	 * 
	 * @return
	 */
	public Integer getIsBack() {
		return IsBack;
	}

	/**
	 * 设置IsBack
	 * 
	 * @param IsBack
	 */
	public void setIsBack(Integer IsBack) {
		this.IsBack = IsBack;
	}

	@Override
	public String toString() {
		return "BeHistory [ID=" + ID + " , OrderNo=" + OrderNo + " , StepID=" + StepID + " , Datee=" + Datee + " , EmpID=" + EmpID + " , IsBack=" + IsBack + "  ]";
	
	}
	
	
}
